This way, we can grep the code for the bad widgets that set this to
TRUE and fix them.
g_return_if_fail (GTK_IS_WIDGET (widget));
widget->priv->no_window = !has_window;
+ widget->priv->no_window_set = TRUE;
}
/**
g_object_set_qdata (object, quark_widget_path, NULL);
G_OBJECT_CLASS (gtk_widget_parent_class)->constructed (object);
+
+ if (!widget->priv->no_window_set)
+ {
+ g_warning ("%s does not call gtk_widget_set_has_window() in its init function", G_OBJECT_TYPE_NAME (widget));
+ }
}
static void
guint toplevel : 1;
guint anchored : 1;
guint no_window : 1;
+ guint no_window_set : 1;
guint realized : 1;
guint mapped : 1;
guint visible : 1;